4215 FOR X = 1 TO 24: FOR N = 1 TO MT:AV(X) = AV(X) +BAL(X,N):TL(N) = TL(N) +BAL(X,N):BAL(X,N) = INT(BAL(X,N) *100 +.5)/100: NEXT N,X: REM *CROSSFOOT & SUM*
4216 FOR X = 1 TO 24:AV(X) = AV(X)/MT:AV(X) = INT(AV(X) *100 +.5)/100:TA = TA +AV(X): IF TL(MT) >0 THEN PC(X,1) = INT((BAL(X,MT) *100)/TL(MT))
4217 IF TL(MT -1) >0 THEN PC(X,2) = INT((BAL(X,MT -1) *100)/TL(MT -1))
4218 NEXT X
4219 FOR X = 1 TO 24: IF TA >0 THEN PC(X,3) = INT((AV(X) *100)/TA)
4220 NM$(X) = N$(X): NEXT X
4221 IF PRTYPE = 1 THEN GOTO 5200
4222 PRINT D$;"PR#1"
4223 PRINT CHR$(9);"90N"
4224 IF PQ = 1 THEN PRINT CHR$(2); CHR$(30)
4228 POKE 36,24: PRINT "TREND ANALYSIS FOR THE MONTH OF ** ";MO$(MT);" **": PRINT
10060 VTAB 24: INVERSE : INPUT "HIT RETURN TO CONTINUE ";X$: NORMAL
10100 HOME : POKE 33,37: POKE 32,3
10110 PRINT : HTAB 13: PRINT "* ADD *"
10120 PRINT : PRINT "USE THE 'ADD' OPTION TO ENTER DETAIL": PRINT "EXPENSE TRANSACTIONS INTO THE CREDIT": PRINT "CARD AND CHECK FILES."
10130 VTAB 8: HTAB 13: PRINT "* POST *"
10150 PRINT : PRINT "USE THE 'POST' OPTION TO REMOVE": PRINT "A DETAIL TRANSACTION FROM ITS": PRINT "ACTIVE FILE AND UPDATE THE YEAR-": PRINT "TO-DATE BALANCES. NOTE: EACH"
10160 PRINT "'POSTED' TRANSACTION WILL BE WRITTEN": PRINT "TO AN AUDIT TRAIL FILE FOR FUTURE": PRINT "REFERENCE."
10170 PRINT : HTAB 13: PRINT "* * *"
10180 PRINT : PRINT "FOR EACH OPTION, FOLLOW THE ": PRINT "INSTRUCTIONS ON THE SCREEN."
10190 VTAB 24: INVERSE : INPUT "HIT RETURN TO CONTINUE ";X$: NORMAL : POKE 32,0: POKE 33,40
10200 REM * ACCEPT OUTPUT DEVICE TYPE
10210 TEXT : HOME
10220 HTAB 8: PRINT "* INITIALIZATION SCREEN *"
10230 VTAB 3: PRINT "ENTER THE REPORT OUTPUT DEVICE": PRINT "YOU WISH TO USE."
10250 VTAB 10: INVERSE : INPUT "ENTER YOUR SELECTION:";PRTYPE: NORMAL
10260 IF PRTYPE <1 OR PRTYPE >2 THEN GOSUB 280: GOTO 10250
10270 IF PRTYPE = 2 THEN PRINT : PRINT "1= CENTRONICS COMPATIBLE": PRINT "2= CENTRONICS 737": PRINT "3= EPSON MX-80 PRINTER": INPUT "ENTER SELECTION ";PQ: IF PQ <1 OR PQ >3 THEN 10270
10300 REM * ACCEPT REPORT DATE
10310 VTAB 20: INVERSE : PRINT "ENTER THE REPORT HEADING DATE: ": NORMAL
10320 VTAB 22: CALL -868: INVERSE : INPUT "IN MO,DAY,YR :";MT,D,Y: NORMAL
10330 IF MT >12 OR D >31 THEN GOSUB 280: GOTO 10320
10400 REM * FILL CONSTANT ARRAYS
10410 D$ = "<CTRL-D>": REM CTRL-D
10420 PRINT D$;"NOMON I,O,C"
10430 DIM N$(24),MO$(13),CD$(5)
10440 FOR X = 1 TO 24: READ N$(X): NEXT X
10450 FOR X = 1 TO 12: READ MO$(X): NEXT X
10460 FOR X = 1 TO 5: READ CD$(X): NEXT X
10470 DIM BAL(24,12),W$(150,6),W(75,13),TL(12),NM$(24),AV(24),PC(24,3),WK(150,5),CC(5)
10500 REM *** MAIN LOOP ***
10510 CALL -936
10530 I = 0
10540 HTAB 13: PRINT "* MAIN MENU *"
10550 VTAB 3: PRINT "ENTER THE NUMBER OF THE OPTION YOU WANT": PRINT "TO USE.": HTAB 10: PRINT "1 = ADD RECORDS": HTAB 10: PRINT "2 = POST (DELETE) RECORDS"
10560 HTAB 10: PRINT "3 = SORT RECORDS ": HTAB 10: PRINT "4 = REPORT/LIST OPTIONS": HTAB 10: PRINT "5 = END THE SESSION"
10570 VTAB 11: INVERSE : INPUT "ENTER YOUR SELECTION: ";OM: NORMAL
10580 GOSUB 270
10590 IF OM = 5 THEN PRINT "ALL DONE": END
10600 IF OM <1 OR OM >5 THEN GOSUB 280: GOTO 10570
10605 IF OM = 4 THEN GOTO 10660
10610 VTAB 15: PRINT "ENTER THE NUMBER OF THE FILE TO BE USED."